<ion-header class="ion-header">
    <ion-toolbar color="primary">
        <ion-buttons slot="start">
            <ion-back-button defaultHref="home"></ion-back-button>
        </ion-buttons>
        <ion-title>金融顾问</ion-title>
    </ion-toolbar>
</ion-header>


<ion-content>
    <ion-refresher (ionRefresh)="doDownRefresh($event)">
        <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新" refreshingSpinner="circles" refreshingText="正在加载数据...">
        </ion-refresher-content>
    </ion-refresher>
    <ion-card *ngFor="let b of items;let i=index">
        <ion-card-header class="ion-card-header">
            <h5 class="cardTitle">{{b.cname}}</h5>
            <a class="more" (click)="goToMore(b.iid, b.cname)">更多></a>
        </ion-card-header>
        <ion-card-content>
            <ion-grid>
                <ion-row>
                    <ion-col *ngFor="let c of b.clist;let j=index">
                        <ion-avatar class="img-avatar" (click)="goToDetails([c.iid])">
                            <img src={{c.cpicpath}}>
                        </ion-avatar>
                        <div>{{c.cname}}</div>
                    </ion-col>
                </ion-row>
            </ion-grid>
        </ion-card-content>
    </ion-card>
    <ion-infinite-scroll (ionInfinite)="doUpRefresh($event)">
        <ion-infinite-scroll-content loadingText="正在加载数据" loadingSpinner="bubbles"></ion-infinite-scroll-content>
    </ion-infinite-scroll>
</ion-content>